@import 'common';
#container {
    position: relative;
    background-color: #f1f1f1;
    font-family: "微软雅黑";
    padding-top: 50px;
    .sub-billboard {
        height: 250px;
        margin-top: -50px;
    }
    .sub-billboard.shopping {
        background-image: url("../images/shop-bg.png");
    }
    .billboard {
        text-align: center;
        color: #FFF;
        background: center top no-repeat #222;
        background-size: cover;
        .wrapper {
            height: 200px;
            padding-top: 90px;
            position: fixed;
            width: 100%;
            left: 0;
            top: 0;
            display: inline-table;
            .inner {
                width: 100%;
                height: 100%;
                display: table-cell;
                vertical-align: middle;
                h1 {
                    font-size: 28px;
                    letter-spacing: 1px;
                    line-height: 1.2;
                    margin-bottom: 10px;
                }
            }
        }
    }
    .content {
//      width: 1260px;
        max-width: 1260px;
        margin: 0 auto;
    }
    .shop {
        background-color: #F1F1F1;
        position: relative;
        .navcaret#guide {
            text-align: center;
            padding-top: 10px;
            background-color: #f1f1f1;
            position: relative;
            .group {
                height: 50px;
                border-bottom: 1px solid #D8D8D8;
                &:after {
                    content: "";
                    display: block;
                    height: 0;
                    clear: both;
                    visibility: hidden;
                }
                ul {
                    li {
                        position: relative;
                        font-size: 14px;
                        height: 50px;
                        cursor: pointer;
                        float: none;
                        display: inline-block;
                        margin: auto 20px -1px;
                        a {
                            color: #666;
                            display: block;
                            padding: 11px 10px 16px;
                            &:hover {
                                text-decoration: none;
                            }
                        }
                    }
                    .current-cat {
                        border-bottom: 1px solid #666;
                    }
                }
            }
        }
        .Tab-content#prview {
            display: block;
        }
        .tab-content {
            margin: 20px auto 0;
            padding-bottom: 30px;
            display: none;
            .goodslist {
                ul {
                    margin: auto -10px;
                    height: auto;
                    overflow: hidden;
                    li {
                        float: left;
                        width: 320px;
                        padding-bottom: 30px;
                        position: relative;
                        .item {
                            margin: auto 10px;
                            background-color: #FFF;
                            box-shadow: 0 1px 1px rgba(0,0,0,0.15);
                            overflow: hidden;
                            position: relative;
                            border: 10px solid #FFF;
                            border-bottom: 0 none;
                            .basic {
                                position: relative;
                                height: 180px;
                                overflow: hidden;
                                .screenshot {
                                    height: 180px;
                                    line-height: 1;
                                    a {
                                        img {
                                            width: 280px;
                                            height: 180px;
                                            max-width: 100%;
                                            height: auto;
                                            width: 100%;
                                            transition: all 0.5s;
                                        }
                                    }
                                }
                                .name {
                                    position: absolute;
                                    background-color: #fff;
                                    font-size: 12px;
                                    bottom: 0;
                                    box-sizing: border-box;
                                    padding: 10px 5px 0;
                                    left: 0;
                                    width: 100%;
                                    opacity: 0;
                                    transition: all 0.3s;
                                    transform: translate3d(0, 50px, 0);
                                    a {
                                        color: #333;
                                        &:hover {
                                            text-decoration: none;
                                        }
                                    }
                                }
                            }
                            .info {
                                margin: 10px auto;
                                padding: 0 5px;
                                .excerpt {
                                    color: #777;
                                    font-size: 12px;
                                    margin: 5px auto;
                                    height: 40px;
                                    overflow: hidden;
                                }
                                .pricebtn {
                                    height: auto;
                                    margin-top: 10px;
                                    font-family: Arial;
                                    color: #ea4c89;
                                    font-size: 12px;
                                    strong {
                                        font-family: Arial;
                                        font-size: 24px;
                                        font-weight: normal;
                                    }
                                    .buy {
                                        background-color: #ea4c89;
                                        font-family: "Helvetica neue",Helvetica,Tahoma,"lantinghei sc","Microsoft Yahei", sans-serif;
                                        display: inline-block;
                                        border-radius: 2px;
                                        color: #FFF;
                                        margin-top: 6px;
                                        padding: 3px 10px;
                                        float: right;
                                        font-size: 12px;
                                        transition: all 0.4s;
                                        &:hover {
                                            background-color: #df3e7b;
                                            text-decoration: none;
                                        }
                                    }
                                }
                            }
                        }
                        &:hover .item .basic .screenshot a img {
                            position: absolute;
                            bottom: 29px;
                        }
                        &:hover .item .basic .name {
                            transform: translate3d(0, 5px, 0);
                            opacity: 1;
                        }
                    }
                }
            }
        }
    }
}

@media only screen and (min-width: 1024px) and (max-width:1230px) {
    #container {
        width: 100%;
        .content{
            width: 100%;
        }
        .shop {
            .tab-content {
                .goodslist {
                    width: 80%;
                    margin: auto;
                }
            }
        }
    }
}
@media only screen and (min-width: 768px) and (max-width:1024px) {
    #container {
        width: 100%;
        .shop {
            .tab-content {
                .goodslist {
                    width: 620px;
                    margin: auto;
                }
            }
        }
    }
}
@media only screen and (min-width: 500px) and (max-width:768px) {
    #container {
        width: 100%;
        .shop {
            .tab-content {
                .goodslist {
                    width: 300px;
                    margin: auto;
                }
            }
        }
    }
}
@media only screen and (max-width: 500px) {
    #container {
        width: 100%;
        .sub-billboard {
            height: auto;
        }
        .billboard {
            .wrapper {
                position: relative;
                height: auto;
                margin: 34px auto;
                padding-top: 33px;
            }
        }
        .shop {
            .tab-content {
                .goodslist {
                    width: 300px;
                    margin: auto;
                }
            }
        }
    }
}